{template game_header}

<style type="text/css">
td{text-align:center;}
</style>

<h4 style="padding-left:10px;;">
    <span>饲养者列表</span>
</h4>
<form class="form-horizontal" method="post" action="?c=adminGame&a=masterList">
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >用户ID：</label>
        <div class="controls">
          <input type="text" placeholder="用户ID" name="uid" value="{$search['uid']}">
        </div>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >城市：</label>
        <div class="controls">
          <input type="text" placeholder="城市名称" name="city" value="{$search['city']}">
        </div>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <label class="control-label" >排序字段：</label>
          <select name="sort">
            <option value="0">选择</option>
            <option {if $search['sort'] == "onlyPoiCount"} selected="selected" {/if} value="onlyPoiCount">交互POI次数</option>
            <option {if $search['sort'] == "poi_count"} selected="selected" {/if} value="poi_count">交互POI个数</option>
            <option {if $search['sort'] == "gift_count"} selected="selected" {/if} value="gift_count">获取礼物数</option>
            <option {if $search['sort'] == "onlyBuffCount"} selected="selected" {/if} value="onlyBuffCount">助力人数</option>
            <option {if $search['sort'] == "given_buff_count"} selected="selected" {/if} value="given_buff_count">助力人次</option>
            <option {if $search['sort'] == "onlyCareCount"} selected="selected" {/if} value="onlyCareCount">照料人数</option>
            <option {if $search['sort'] == "cared_count"} selected="selected" {/if} value="cared_count">照料人次</option>
          </select>
          <select name="order" style="width:70px;">
            <option value="desc">降序</option>
            <option {if $search['order'] == "asc"} selected="selected" {/if} value="asc">升序</option>
          </select>
    </div>
    <div class="control-group search-group" style="margin:0;">
        <div class="controls">
            <input type="hidden" value="search" name="s">
            <button class="btn" type="submit">搜索</button>
        </div>
    </div>
</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>UID</th>
                <th>饲养者昵称</th>
                <th>所在地</th>
                <th>跑步次数</th>
                <th>跑步总距离</th>
                <th>游戏进度</th>
                <th>交互POI个数</th>
                <th>交互POI次数</th>
                <th>获取礼物数</th>
                <th>助力人数</th>
                <th>助力人次</th>
                <th>照料人数</th>
                <th>照料人次</th>
            </tr>
        </thead>
        <tbody>
            {if !$list}  
                <tr>
                    <td colspan="13">暂无记录</td>              
                </tr>
            {else}

            {loop $list $k $v}
            <tr>
                <td>{$v['uid']}</td>
                <td>{$v['nickname']}</td>
                <td>{$v['city']}</td>
                <td>{$v['run_times']}</td>
                <td>{$v['run_mileage']}</td>
                <td>{$v['chapter']}</td>
                <td>{$v['poi_count']}</td>
                <td>{$v['onlyPoiCount']}</td>
                <td>{$v['gift_count']}</td>
                <td>{$v['onlyBuffCount']}</td>
                <td>{$v['given_buff_count']}</td>
                <td>{$v['onlyCareCount']}</td>
                <td>{$v['cared_count']}</td>
            </tr>
            {/loop}

            {/if}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}
